package org.apache.servicecomb.samples.practise.houserush.sale.dao;

import org.apache.servicecomb.samples.practise.houserush.sale.aggregate.Sale;
import org.apache.servicecomb.samples.practise.houserush.sale.aggregate.SaleQualification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Author: Snake Man
 * @system:
 * @DateTime: 2022/1/18 13:17
 * @Description:
 */
public interface SaleDao extends JpaRepository<Sale, Integer> {

    //根据楼盘查询活动
    List<Sale> findByRealestateId(int realestateId);


}
